gtk4.git
12 years agodemo: only set transient if demo returns a toplevel
William Jon McCann [Mon, 9 Dec 2013 08:55:08 +0000 (09:55 +0100)]
demo: only set transient if demo returns a toplevel

12 years agodemo: put run button on the left
William Jon McCann [Mon, 9 Dec 2013 08:26:08 +0000 (09:26 +0100)]
demo: put run button on the left

It is a bit annoying to have to go over to the right side to click it.

12 years agowayland: Update to latest xdg-shell.xml
Jasper St. Pierre [Sat, 7 Dec 2013 18:19:59 +0000 (13:19 -0500)]
wayland: Update to latest xdg-shell.xml

12 years agowayland: Make sure to call use_unstable_version
Jasper St. Pierre [Sat, 7 Dec 2013 18:14:36 +0000 (13:14 -0500)]
wayland: Make sure to call use_unstable_version

12 years agobutton: Allow :hover on insensitive buttons
Benjamin Otte [Sat, 7 Dec 2013 00:29:56 +0000 (01:29 +0100)]
button: Allow :hover on insensitive buttons

You can still hover a mouse on insensitive elements; it's up to the
theme to disable that.
This is in line with the HTML/CSS interpretation of :hover.

Insensitive elements still cannot be clicked.

https://bugzilla.gnome.org/show_bug.cgi?id=719486

12 years agogdk: Add some return_if_fail() warnings
Benjamin Otte [Fri, 6 Dec 2013 18:21:27 +0000 (19:21 +0100)]
gdk: Add some return_if_fail() warnings

so we have a better chance of catching the correct cause of bugs like

https://bugzilla.gnome.org/show_bug.cgi?id=719977

12 years agofilechooser: Don't crash if invalid thumbnails exist
Benjamin Otte [Fri, 6 Dec 2013 18:15:24 +0000 (19:15 +0100)]
filechooser: Don't crash if invalid thumbnails exist

Failing to load a thumbnail returns a NULL pixbuf. Since the hidpi
patches this wasn't checked when creating the surface. Result: assertion
failure.

https://bugzilla.gnome.org/show_bug.cgi?id=719977

12 years agogtkradio*: add (allow-none) annotations were appropriate
Torsten Schönfeld [Fri, 6 Dec 2013 22:53:41 +0000 (23:53 +0100)]
gtkradio*: add (allow-none) annotations were appropriate

https://bugzilla.gnome.org/show_bug.cgi?id=679563

12 years agodemo: Add demo for advanced event information management
Carlos Garnacho [Wed, 27 Nov 2013 16:53:33 +0000 (17:53 +0100)]
demo: Add demo for advanced event information management

This demo condenses the essentials of advanced management of
input events. Depending on the information available in input events,
this demo will try to represent as much information as possible for
those.

https://bugzilla.gnome.org/show_bug.cgi?id=719987

12 years agodocs: Add a missing Since: tag
Matthias Clasen [Thu, 5 Dec 2013 14:08:35 +0000 (09:08 -0500)]
docs: Add a missing Since: tag

12 years agoDon't distribute generated sources
Matthias Clasen [Thu, 5 Dec 2013 14:07:19 +0000 (09:07 -0500)]
Don't distribute generated sources

This was causing problems when building 3.10.6 against an older
wayland.

12 years agoGtkMenuItem: only set 'separator' class on the separator line
Lars Uebernickel [Wed, 4 Dec 2013 18:45:30 +0000 (19:45 +0100)]
GtkMenuItem: only set 'separator' class on the separator line

To make the separator line distinguishable from the widget's normal
border from css.

https://bugzilla.gnome.org/show_bug.cgi?id=719861

12 years agoFix make dist
Matthias Clasen [Thu, 5 Dec 2013 05:48:08 +0000 (00:48 -0500)]
Fix make dist

12 years agox11: Handle XINotifyPassiveGrab/Ungrab in focus events
Carlos Garnacho [Wed, 4 Dec 2013 11:49:02 +0000 (12:49 +0100)]
x11: Handle XINotifyPassiveGrab/Ungrab in focus events

The focus handling code is shared between core and XI2 implementations,
so just handle the extra XI2 types for passive grabs. Those must be dealt
with in the same way than active grabs. Focus events with this crossing
mode could happen currently through the XIGrabFocusIn passive grab.

https://bugzilla.gnome.org/show_bug.cgi?id=719762

12 years agox11: Handle all XI2 crossing mode values in switch
Carlos Garnacho [Wed, 4 Dec 2013 11:34:31 +0000 (12:34 +0100)]
x11: Handle all XI2 crossing mode values in switch

This fixes potential assertions if a GTK+ app gets to receive
a XINotifyPassiveGrab/Ungrab pointer crossing event, currently
triggerable by XIGrabEnter passive grabs.

http://bugzilla.gnome.org/show_bug.cgi?id=719762

12 years agorecentchooserdefault: Clean up load_id when we have nothing left to do
Jasper St. Pierre [Wed, 4 Dec 2013 20:08:25 +0000 (15:08 -0500)]
recentchooserdefault: Clean up load_id when we have nothing left to do

Returning FALSE from a GSourceFunc will implicitly remove it, so we need
to do this in order to make the new g_source_remove happy.

12 years agoUpdated POTFILES.skip
Piotr Drąg [Wed, 4 Dec 2013 18:17:50 +0000 (19:17 +0100)]
Updated POTFILES.skip

12 years agowindow: enable client side decorations deactivation with wayland backend
Lionel Landwerlin [Wed, 4 Dec 2013 11:45:46 +0000 (11:45 +0000)]
window: enable client side decorations deactivation with wayland backend

12 years agoRevert "gdkwindow-x11: Don't set WM_TAKE_FOCUS if accept_focus is FALSE"
Matthias Clasen [Wed, 4 Dec 2013 16:21:42 +0000 (11:21 -0500)]
Revert "gdkwindow-x11: Don't set WM_TAKE_FOCUS if accept_focus is FALSE"

This reverts commit 809aab2c8ec88c7b10254a948ba8754a766b1f7c.

12 years agoBug 712536 - Themes with gap_(start|end)_file but no actual file crash
Jehan [Sat, 23 Nov 2013 05:35:18 +0000 (18:35 +1300)]
Bug 712536 - Themes with gap_(start|end)_file but no actual file crash

Code factorization in commit 34fd123 reintroduced bug fixed in 0d396ab
with non-equivalent factorized tests.

12 years agotreeview: Don't draw a background for the bin window
Benjamin Otte [Wed, 4 Dec 2013 09:37:31 +0000 (10:37 +0100)]
treeview: Don't draw a background for the bin window

The bin window's background would have to be drawn in the bin window's
size and inside the pixel cache draw function to not cause transparency
issues.

But because it's unnecessary as the view window draws the same
background, we just skip it.

https://bugzilla.gnome.org/show_bug.cgi?id=709027

12 years agoTajik translation updated
Victor Ibragimov [Wed, 4 Dec 2013 09:13:13 +0000 (14:13 +0500)]
Tajik translation updated

12 years agogtk-demo: fix colorchooser example
Matthias Clasen [Wed, 4 Dec 2013 04:30:52 +0000 (23:30 -0500)]
gtk-demo: fix colorchooser example

A nested dialog on top of a modal dialog must itself be modal,
otherwise it doesn't get any input.

12 years agoGDK-Win32: Ensure sources use UNIX line endings
Chun-wei Fan [Wed, 4 Dec 2013 00:57:43 +0000 (08:57 +0800)]
GDK-Win32: Ensure sources use UNIX line endings

This makes things more consistent with the other sources and makes patches
easier to apply cleanly.

12 years agoMSVC Projects: Use UNIX Line endings
Chun-wei Fan [Wed, 4 Dec 2013 00:51:39 +0000 (08:51 +0800)]
MSVC Projects: Use UNIX Line endings

...for all files except the README.txt and the .sln files, which have to
have DOS/Windows line endings.  This makes application of patches, when
applicable, easier.

12 years agofile-chooser: add a sort-directories-first gsetting
William Jon McCann [Tue, 3 Dec 2013 17:10:29 +0000 (12:10 -0500)]
file-chooser: add a sort-directories-first gsetting

Add an option to sort folders before files in order to be
more constistent with the file manager.

12 years agodemo: Fix the size of the run button
Yosef Or Boczko [Tue, 3 Dec 2013 16:44:07 +0000 (18:44 +0200)]
demo: Fix the size of the run button

12 years agodemo: make demo windows transient to the main window
William Jon McCann [Tue, 3 Dec 2013 02:47:55 +0000 (21:47 -0500)]
demo: make demo windows transient to the main window

This prevents them getting lost behind.

12 years agodemo: Add a GtkHeaderBar
William Jon McCann [Tue, 3 Dec 2013 01:35:57 +0000 (20:35 -0500)]
demo: Add a GtkHeaderBar

12 years agodemo: change application name of inner demo
William Jon McCann [Tue, 3 Dec 2013 02:31:13 +0000 (21:31 -0500)]
demo: change application name of inner demo

12 years agodemo: expand notebook tabs
William Jon McCann [Tue, 3 Dec 2013 01:02:56 +0000 (20:02 -0500)]
demo: expand notebook tabs

12 years agodemo: Port to GtkApplication
William Jon McCann [Tue, 3 Dec 2013 00:42:04 +0000 (19:42 -0500)]
demo: Port to GtkApplication

And use GtkBuilder to construct interface.

12 years agogtk object tests: run under local environment
Lars Uebernickel [Sat, 9 Nov 2013 00:15:33 +0000 (01:15 +0100)]
gtk object tests: run under local environment

Make sure that the tests don't access the host's session bus or
installed gsettings schemas.

Also disable tests for some classes that leak a connection to the
session bus.

https://bugzilla.gnome.org/show_bug.cgi?id=711715

12 years agotoolbar: draw a full box for separators
Jonh Wendell [Mon, 2 Dec 2013 18:32:54 +0000 (16:32 -0200)]
toolbar: draw a full box for separators

This allows themes do whatever they want as separators, with
paddings, borders and backgrounds.

If "wide-separators" property is true, then, instead of just draw
a frame, also render its background, and take into account the
padding property for its limits.

https://bugzilla.gnome.org/show_bug.cgi?id=719713

12 years agobutton: Call the new function
Benjamin Otte [Mon, 2 Dec 2013 20:24:30 +0000 (21:24 +0100)]
button: Call the new function

This simplifies a lot of code and doesn't require hacks setting
in_button anymore.

12 years agobutton: Split out function
Benjamin Otte [Mon, 2 Dec 2013 12:41:15 +0000 (13:41 +0100)]
button: Split out function

This is in preparation of the following cleanup commits.

12 years agobutton: Don't emit a signal on broken grabs
Benjamin Otte [Mon, 2 Dec 2013 20:21:22 +0000 (21:21 +0100)]
button: Don't emit a signal on broken grabs

We don't emit one on grab notify, so we don't want one for broken grabs
either.

12 years agogdkwindow: Remove an unused assignment
Philip Withnall [Mon, 2 Dec 2013 10:42:00 +0000 (10:42 +0000)]
gdkwindow: Remove an unused assignment

The show variable is assigned to in both branches of an if block a
little further down.

Found with scan-build.

https://bugzilla.gnome.org/show_bug.cgi?id=712760

12 years agogdkwindow: Remove an unused assignment
Philip Withnall [Mon, 2 Dec 2013 10:41:38 +0000 (10:41 +0000)]
gdkwindow: Remove an unused assignment

scale is only used if HAVE_CAIRO_SURFACE_SET_DEVICE_SCALE is defined.

Found with scan-build.

https://bugzilla.gnome.org/show_bug.cgi?id=712760

12 years agogtkprintunixdialog: Remove a redundant (GFile != NULL) check
Philip Withnall [Tue, 26 Nov 2013 15:06:48 +0000 (15:06 +0000)]
gtkprintunixdialog: Remove a redundant (GFile != NULL) check

g_file_new_for_uri() is guaranteed to return a non-NULL value, so this
check was redundant, and was confusing the static analyser into
returning a false positive, where it thought the file could be NULL.

https://bugzilla.gnome.org/show_bug.cgi?id=712760

12 years agogtktreeselection: Eliminate a dead assignment
Philip Withnall [Wed, 20 Nov 2013 17:37:15 +0000 (17:37 +0000)]
gtktreeselection: Eliminate a dead assignment

This is technically a dead assignment, but is nice to retain for
clarity. Moving it to the variable definition shuts scan-build up.

https://bugzilla.gnome.org/show_bug.cgi?id=712760

12 years agogtkthemingengine: Eliminate a dead assignment
Philip Withnall [Wed, 20 Nov 2013 17:36:16 +0000 (17:36 +0000)]
gtkthemingengine: Eliminate a dead assignment

This is technically a dead assignment, but is nice to retain for
clarity. Moving it to the variable definition shuts scan-build up.

https://bugzilla.gnome.org/show_bug.cgi?id=712760

12 years agogtkthemingengine: Fix a definite use of an uninitialised variable
Philip Withnall [Wed, 20 Nov 2013 17:35:04 +0000 (17:35 +0000)]
gtkthemingengine: Fix a definite use of an uninitialised variable

At this point, segments[1] is always uninitialised, and is used to
initialise itself. Looking at the code in the branch above, this appears
to have been a typo from segments[0], as segments[1] seems to typically
be 2 * segments[0].

Found by scan-build.

https://bugzilla.gnome.org/show_bug.cgi?id=712760

12 years agogtkpapersize: Reformat #if preprocessor commands
Philip Withnall [Wed, 20 Nov 2013 17:33:03 +0000 (17:33 +0000)]
gtkpapersize: Reformat #if preprocessor commands

This eliminates some false positive warnings from scan-build, which was
not interpreting the #ifs and hence warning about unbalanced #endifs.

https://bugzilla.gnome.org/show_bug.cgi?id=712760

12 years agogtkmenu: Fix potential use of uninitialised variables
Philip Withnall [Wed, 20 Nov 2013 17:31:28 +0000 (17:31 +0000)]
gtkmenu: Fix potential use of uninitialised variables

The child_height out variable is only valid if compute_child_offset()
returns TRUE.

Found by scan-build.

https://bugzilla.gnome.org/show_bug.cgi?id=712760

12 years agogtktreeviewaccessible: Fix potential uses of uninitialised variables
Philip Withnall [Wed, 20 Nov 2013 17:25:25 +0000 (17:25 +0000)]
gtktreeviewaccessible: Fix potential uses of uninitialised variables

Found with scan-build.

https://bugzilla.gnome.org/show_bug.cgi?id=712760

12 years agoGtkRevealer: Fix size allocation with disabled animation
Matthias Clasen [Mon, 2 Dec 2013 02:45:17 +0000 (21:45 -0500)]
GtkRevealer: Fix size allocation with disabled animation

When animation is disabled, we use 'none' as the effective
transition type. So far, this transition type failed to change
the size request, causing the revealer to always take up the
space of the child, even when the child is not shown.

https://bugzilla.gnome.org/show_bug.cgi?id=719568

12 years agoFix the AtkImage implementation for GtkIconView items
Matthias Clasen [Sun, 1 Dec 2013 23:33:38 +0000 (18:33 -0500)]
Fix the AtkImage implementation for GtkIconView items

We were returning uninitialized values for image size and
position.

Found in a pile of patches in
https://bugzilla.gnome.org/review?bug=712760

12 years agoCode cleanup
Matthias Clasen [Sun, 1 Dec 2013 22:54:00 +0000 (17:54 -0500)]
Code cleanup

Don't compare booleans to FALSE.

12 years agoannotations: Set GtkTreeModelFilterModifyFunc value argument to out
Simon Feltman [Thu, 28 Nov 2013 00:54:09 +0000 (16:54 -0800)]
annotations: Set GtkTreeModelFilterModifyFunc value argument to out

Use (out caller-allocates) annotation for the "value" argument to
GtkTreeModelFilterModifyFunc. This is needed because GI based language
bindings coerce GValue input args into native types and there is no
opportunity to set the value within the GValue itself.

https://bugzilla.gnome.org/show_bug.cgi?id=719460

12 years agoAdd class toolbar before the style context is created for the widget.
Marco Brito [Sat, 30 Nov 2013 11:36:00 +0000 (11:36 +0000)]
Add class toolbar before the style context is created for the widget.

The call to gtk_button_set_relief() in gtk_toolbar_init() indirectly
used the style context of the half-created widget, before we had a
chance to add the "toolbar" style class to it.

Reorder gtk_toolbar_init() to ensure that the proper style class is
set first.

https://bugzilla.gnome.org/show_bug.cgi?id=719595

12 years agoinfobar: Fix visibility when enable-animations=false
Christian Persch [Fri, 29 Nov 2013 12:13:34 +0000 (13:13 +0100)]
infobar: Fix visibility when enable-animations=false

When enable-animations is false, the revealer's child-revealed property is
notified immediately, so make sure to connect to it before toggling the
revealer.

https://bugzilla.gnome.org/show_bug.cgi?id=719510

12 years agoCorrect the deprecation annotation for gtk_widget_modify_bg
Aaron Hamilton [Thu, 28 Nov 2013 07:26:00 +0000 (07:26 +0000)]
Correct the deprecation annotation for gtk_widget_modify_bg

It was pointing to a nonexisting function.

https://bugzilla.gnome.org/show_bug.cgi?id=719469

12 years agoDon't use depeprecated api
Matthias Clasen [Sun, 1 Dec 2013 21:54:20 +0000 (16:54 -0500)]
Don't use depeprecated api

GtkPrintUnixDialog and testtitlebar were still using
gtk_widget_set_margin_left/right. Switch them over to
gtk_widget_set_margin_start/end.

12 years agomessage dialog: Make labels wrap at a reasonable length
Matthias Clasen [Sun, 1 Dec 2013 21:19:17 +0000 (16:19 -0500)]
message dialog: Make labels wrap at a reasonable length

Several labels in GtkMessageDialog were set to wrap, but
did not set max-width-chars. Fix that.

12 years agoabout dialog: Make labels wrap at reasonable length
Matthias Clasen [Sun, 1 Dec 2013 21:18:07 +0000 (16:18 -0500)]
about dialog: Make labels wrap at reasonable length

Several labels in GtkAboutDialog are set to wrap, but
don't set a value for max-width-chars. Fix that.

12 years agoplaces sidebar: Use a symbolic desktop icon
Matthias Clasen [Sun, 1 Dec 2013 18:58:39 +0000 (13:58 -0500)]
places sidebar: Use a symbolic desktop icon

This was pointed out in

https://bugzilla.gnome.org/show_bug.cgi?id=719505

12 years agobuild/win32/vs*/README.txt: Re-word a bit
Chun-wei Fan [Fri, 29 Nov 2013 01:53:49 +0000 (09:53 +0800)]
build/win32/vs*/README.txt: Re-word a bit

Use PATH rather than path to make things clearer

12 years agoGtkAboutDialog: fixed calling gtk_about_dialog_set_logo_icon_name()
Juan Pablo Ugarte [Thu, 28 Nov 2013 20:01:18 +0000 (17:01 -0300)]
GtkAboutDialog: fixed calling gtk_about_dialog_set_logo_icon_name()
with a NULL icon_name. Now it will actually use the default
window icon set as mention in the docs

12 years agoGtkIconCache: find_image_offset() return 0 if icon_name is NULL.
Juan Pablo Ugarte [Thu, 28 Nov 2013 19:56:11 +0000 (16:56 -0300)]
GtkIconCache: find_image_offset() return 0 if icon_name is NULL.
This avoid a crash calling gtk_about_dialog_set_logo_icon_name() with a NULL icon_name.

12 years agoFix CSD check for Win32
Manuel Bachmann [Wed, 27 Nov 2013 10:14:16 +0000 (11:14 +0100)]
Fix CSD check for Win32

Win32 does not have alpha channel currently ; fix the check
for this, so trying to enable CSDs on this platform will
not "succeed" and crash the app anymore.

Partially fixes gtk3-widget-factory.

12 years agoVisual C++ Projects: Add rules to generate GTK DBus sources
Chun-wei Fan [Wed, 27 Nov 2013 10:05:32 +0000 (18:05 +0800)]
Visual C++ Projects: Add rules to generate GTK DBus sources

Since commit 7c2a5072 the gtkdbusgenerated.[c|h] are not included in the
dist tarball and thus have to be generated, which broke the Visual C++
builds.

This patch adds property sheets and custom build rules for the Visual C++
projects so that gtkdbusgenerated.[c|h] will be generated upon building the
GTK+ DLL sources.

This also tells people building GTK+ from the projects that they need to
have Python 2/3 installed and the Python interpretor needs to be in their
PATH before building GTK+ from the projects.

12 years agoUpdate GDK-Broadway MSVC Projects
Chun-wei Fan [Wed, 27 Nov 2013 08:46:45 +0000 (16:46 +0800)]
Update GDK-Broadway MSVC Projects

-Improve optimization a bit for broadwayd, by enabling link time code
 generation
-Add PlatformToolset tag for the Visual C++ 2010 projects, to ease
 transition to Visual C++ 2012/2013

12 years agoTamil Translations Updated
Shantha kumar [Wed, 27 Nov 2013 08:10:06 +0000 (13:40 +0530)]
Tamil Translations Updated

12 years agoDon't distribute gdbus-generated sources
Matthias Clasen [Thu, 21 Nov 2013 00:40:17 +0000 (19:40 -0500)]
Don't distribute gdbus-generated sources

These are supposed to be regenerated at build time,
to avoid dependencies on the dist-systems glib version.

12 years agodefaultvalue test: ignore show-desktop
Ryan Lortie [Fri, 15 Nov 2013 14:32:19 +0000 (09:32 -0500)]
defaultvalue test: ignore show-desktop

Ignore the "show-desktop" property on GtkPlacesSidebar for the
defaultvalue test.

Currently, "make check" is passing because it runs the test under a xvfb
with no XSETTINGS provider, so we see the Gtk default value.  No matter
what we set the default value to in Gtk, however, there will be some
desktop environment in which someone running the installed test outside
of an xvfb will get the wrong result.  Best to ignore it.

https://bugzilla.gnome.org/show_bug.cgi?id=712302

12 years agoChange the default for "show-desktop" back to TRUE
Matthias Clasen [Tue, 26 Nov 2013 18:54:44 +0000 (13:54 -0500)]
Change the default for "show-desktop" back to TRUE

Change the GtkSettings default for "shell-shows-desktop" back to TRUE
and also change the default value of the "show-desktop" property on
GtkPlacesSidebar so that the defaultvalue test passes.

https://bugzilla.gnome.org/show_bug.cgi?id=712302

12 years agobindings: Fix stray semicolons in CSS example for bindings
Michael Wood [Mon, 25 Nov 2013 15:59:41 +0000 (15:59 +0000)]
bindings: Fix stray semicolons in CSS example for bindings

Semicolon shouldn't be at the end of binding set

12 years agox11: Don't crash if a window is on an unmanaged screen
Benjamin Otte [Mon, 25 Nov 2013 20:11:56 +0000 (21:11 +0100)]
x11: Don't crash if a window is on an unmanaged screen

_gdk_x11_display_screen_for_xrootwin() can return NULL. If so, return
NULL from gdk_x11_window_foreign_new_for_display().

https://bugzilla.gnome.org/show_bug.cgi?id=709716

12 years agox11: keep track of the screen pixel size by calculating the bounding box of monitors
Carlos Garnacho [Fri, 22 Nov 2013 17:33:02 +0000 (18:33 +0100)]
x11: keep track of the screen pixel size by calculating the bounding box of monitors

This is so we always have the latest information given by XRandR (or other), and not
rely on Core protocol information that might not have been updated yet.

This is specially visible when a monitor is connected (less frequent) or disconnected
(much more frequent), callbacks on GdkScreen::monitors-changed that call
gdk_screen_get_width/height() could get the screen size previous to the monitor
rearrangement.

So in order to fix this, keep track of the latest monitors information, and calculate
the bounding box in order to know the screen size.

https://bugzilla.gnome.org/show_bug.cgi?id=715029

12 years agoprinting: Fix memory leak when listing Avahi printers
Marek Kasik [Fri, 22 Nov 2013 10:31:25 +0000 (11:31 +0100)]
printing: Fix memory leak when listing Avahi printers

Return values of g_variant_get_child_value() were not unreffed
correctly together with one value returned by g_variant_get().
Use g_variant_get_data() instead of copying each byte separately.

https://bugzilla.gnome.org/show_bug.cgi?id=712799

12 years agoBroadway - Fix UNIX/Win32 detection
Manuel Bachmann [Mon, 25 Nov 2013 03:47:51 +0000 (04:47 +0100)]
Broadway - Fix UNIX/Win32 detection

Finally fix this check so unnecessary headers aren't needed.

12 years agotests: Add max-width-chars to testwindowsize test
Benjamin Otte [Mon, 25 Nov 2013 02:49:13 +0000 (03:49 +0100)]
tests: Add max-width-chars to testwindowsize test

12 years agomenu: Do a proper min height request
Benjamin Otte [Mon, 25 Nov 2013 02:46:25 +0000 (03:46 +0100)]
menu: Do a proper min height request

The minimum height is the size of one menu item plus the arrows, not the
minimum size of all menu items.

https://bugzilla.gnome.org/show_bug.cgi?id=691974
https://bugzilla.gnome.org/show_bug.cgi?id=694859

12 years agowindow: Don't assume 640x480 max default size
Benjamin Otte [Mon, 25 Nov 2013 01:40:05 +0000 (02:40 +0100)]
window: Don't assume 640x480 max default size

Instead, use the monitor's work area.

This might have unforseen side effects that warrant a later revert, such
as:
- Apparently some WMs assume maximizing when a window is maximum screen
  size.
- WMs might not shrink the window by the decorations' size when it tries
  to be fullscreen.
- Applications might have buggy size request code that causes weirdly
  sized windows.

12 years agostack: Fix crash on g_object_get("visible-child")
Benjamin Otte [Mon, 25 Nov 2013 01:39:13 +0000 (02:39 +0100)]
stack: Fix crash on g_object_get("visible-child")

priv->visible_child is not a GtkWidget but a custom struct holding the
widget. So use the getter instead.

12 years agotreemenu: Implement height-for-width properly
Benjamin Otte [Thu, 21 Nov 2013 15:24:27 +0000 (16:24 +0100)]
treemenu: Implement height-for-width properly

12 years agotestsuite: Fix potential strcmp() against NULL
Philip Withnall [Wed, 20 Nov 2013 17:39:21 +0000 (17:39 +0000)]
testsuite: Fix potential strcmp() against NULL

Use g_strcmp0() instead.

Found by scan-build.

https://bugzilla.gnome.org/show_bug.cgi?id=712760

12 years agogtktreeviewaccessible: Fix a potential division by zero
Philip Withnall [Wed, 20 Nov 2013 17:25:48 +0000 (17:25 +0000)]
gtktreeviewaccessible: Fix a potential division by zero

Found with scan-build.

https://bugzilla.gnome.org/show_bug.cgi?id=712760

12 years agogdkwindow: Fix potential uses of uninitialised variables
Philip Withnall [Wed, 20 Nov 2013 17:20:33 +0000 (17:20 +0000)]
gdkwindow: Fix potential uses of uninitialised variables

Found with scan-build.

https://bugzilla.gnome.org/show_bug.cgi?id=712760

12 years agopixbuf-engine: Clean up error conditions and destructors
Emmanuele Bassi [Mon, 18 Nov 2013 11:05:39 +0000 (11:05 +0000)]
pixbuf-engine: Clean up error conditions and destructors

Simplify the error checks and move all common behaviour into a utility
function.

https://bugzilla.gnome.org/show_bug.cgi?id=712536

12 years agopixbuf-engine: Improve ThemePixbuf clean up functions
Emmanuele Bassi [Mon, 18 Nov 2013 11:04:37 +0000 (11:04 +0000)]
pixbuf-engine: Improve ThemePixbuf clean up functions

Make theme_pixbuf_destroy() NULL-safe like g_free(), and add a clear
function in the spirit of the g_clear_* family of functions.

https://bugzilla.gnome.org/show_bug.cgi?id=712536

12 years agoThemes with specified gap images but no actual file crash.
Jehan [Sun, 17 Nov 2013 11:56:44 +0000 (00:56 +1300)]
Themes with specified gap images but no actual file crash.

https://bugzilla.gnome.org/show_bug.cgi?id=712536

12 years agox11: Unset GdkX11DeviceXI2 scroll valuators on device change
Carlos Garnacho [Fri, 27 Sep 2013 17:32:54 +0000 (19:32 +0200)]
x11: Unset GdkX11DeviceXI2 scroll valuators on device change

Scroll valuators were being just appended again and again, leading
to 1) a growing memory issue anytime a device changed 2) the first
scroll valuators to stay permanent on the application lifetime, as
the first stored valuators would always match.

https://bugzilla.gnome.org/show_bug.cgi?id=705203

12 years agobuild: bump requirement on gobject-introspection to 1.39.0
Tim Lunn [Thu, 21 Nov 2013 20:16:58 +0000 (07:16 +1100)]
build: bump requirement on gobject-introspection to 1.39.0

https://bugzilla.gnome.org/show_bug.cgi?id=713044

12 years agowayland: Sync transient-for on xdg-surface show as well...
Jasper St. Pierre [Thu, 21 Nov 2013 17:58:47 +0000 (12:58 -0500)]
wayland: Sync transient-for on xdg-surface show as well...

12 years agowayland: Allow set_title after initial showing
Jasper St. Pierre [Thu, 21 Nov 2013 17:03:18 +0000 (12:03 -0500)]
wayland: Allow set_title after initial showing

and fix the ordering of title / app_id

12 years agoUpdate xdg-shell.xml
Jasper St. Pierre [Thu, 21 Nov 2013 18:00:45 +0000 (13:00 -0500)]
Update xdg-shell.xml

12 years agoprinting: Don't wake up Avahi printers unnecessarily
Marek Kasik [Thu, 21 Nov 2013 14:27:33 +0000 (15:27 +0100)]
printing: Don't wake up Avahi printers unnecessarily

Use info available in Avahi TXT records for creation of gtk printer
and request details when needed (through gtk_printer_request_details()).
If there is a printer advertised on Avahi by a remote CUPS server
try to get its PPD file at first or get its capabilities through an IPP
request if it fails.

https://bugzilla.gnome.org/show_bug.cgi?id=712751

12 years agocombobox: Set GDK_SCROLL_MASK on the eventbox in appears-as-list mode
Carlos Garnacho [Wed, 20 Nov 2013 11:53:57 +0000 (12:53 +0100)]
combobox: Set GDK_SCROLL_MASK on the eventbox in appears-as-list mode

This is so the scroll wheel works in both modes, and there's no behavioral
change depending on a style property.

https://bugzilla.gnome.org/show_bug.cgi?id=702663

12 years agoUpdate xdg-shell.xml
Jasper St. Pierre [Tue, 19 Nov 2013 23:59:50 +0000 (18:59 -0500)]
Update xdg-shell.xml

12 years agowayland: Don't assert fail in DND
Jasper St. Pierre [Tue, 19 Nov 2013 23:55:26 +0000 (18:55 -0500)]
wayland: Don't assert fail in DND

This needs completion, sure thing, but let's try to just not fall
flat on our face first.

12 years agowayland: Don't recreate the gtk_surface on every show
Jasper St. Pierre [Tue, 19 Nov 2013 23:27:54 +0000 (18:27 -0500)]
wayland: Don't recreate the gtk_surface on every show

It's illegal.

12 years agoRevert "stack: respect gtk-enable-animations setting"
Jasper St. Pierre [Tue, 19 Nov 2013 23:38:12 +0000 (18:38 -0500)]
Revert "stack: respect gtk-enable-animations setting"

It already respected enable-animations.

This reverts commit fb9ff442997f02ee2d6ad0eae0321a961e96f56f.

12 years agowayland: Set DBus properties after we've constructed the xdg_surface
Jasper St. Pierre [Tue, 19 Nov 2013 21:24:57 +0000 (16:24 -0500)]
wayland: Set DBus properties after we've constructed the xdg_surface

12 years agowayland: Fix invalid cast in transient_for
Jasper St. Pierre [Tue, 19 Nov 2013 17:36:12 +0000 (12:36 -0500)]
wayland: Fix invalid cast in transient_for

12 years agotreeview: Use CSS property "border-top-color" to draw grid lines
Jonh Wendell [Mon, 18 Nov 2013 19:15:12 +0000 (17:15 -0200)]
treeview: Use CSS property "border-top-color" to draw grid lines

This allows themes to customize the grid line colors in treeviews.

https://bugzilla.gnome.org/show_bug.cgi?id=415415

12 years agostack: respect gtk-enable-animations setting
Matthias Clasen [Tue, 19 Nov 2013 04:19:27 +0000 (23:19 -0500)]
stack: respect gtk-enable-animations setting

https://bugzilla.gnome.org/show_bug.cgi?id=712632

12 years agorevealer: Respect gtk-enable-animations setting
Christian Persch [Mon, 18 Nov 2013 20:21:49 +0000 (21:21 +0100)]
revealer: Respect gtk-enable-animations setting

https://bugzilla.gnome.org/show_bug.cgi?id=712632

12 years agoBump version
Matthias Clasen [Tue, 19 Nov 2013 01:59:05 +0000 (20:59 -0500)]
Bump version